
include Makefile.common

all:
	@ echo
	@ echo "   FEMLIB_HOME=$(FEMLIB_HOME)"
	@ echo
	@ for i in $(SUBDIRS); \
		do echo; echo "processing dir: $$i:"; echo; \
		$(MAKE) -C $$i all; \
	done;
	
clean:
	@ for i in $(SUBDIRS) ; \
		do echo; echo "processing dir: $$i:"; echo;\
		$(MAKE) -C $$i clean; \
	done;
	$(RM) $(DYLIB_PATH)/$(DYLIB)
#	$(RM) -r FEMLIB-X.X

clean_tests:
	@ cd tests ;
	@	echo "processing dir: tests:";
	@	$(MAKE) -C tests clean; 
	$(RM) $(DYLIB_PATH)/$(DYLIB)
#	$(RM) -r FEMLIB-X.X


install:
	$(MKDIR) $(PREFIX)/lib
	$(MKDIR) $(PREFIX)/include/femlib/
	cp $(DYLIB_PATH)/$(DYLIB) $(PREFIX)/lib/
	cp include/*.h $(PREFIX)/include/femlib/

uninstall:
	$(RM) $(PREFIX)/lib/$(DYLIB)
	$(RM) -r $(PREFIX)/include/flens/

